import 'babel-polyfill'

// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// import Config from "./conf/config.js"
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './business/store.js'
import UiComponents from './components/common/ui'
import {Loading, MessageBox, Message, Notification} from 'element-ui'
import Util from './utils/utils'
// 数据模拟
require('./data/mock.js')

Vue.use(UiComponents)
// import extend from './utils/vueextend.js'
// Vue.use(extend)

Vue.use(Loading.directive);

Vue.prototype.$loading = Loading.service;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$notify = Notification;
Vue.prototype.$message = Message;
Vue.prototype.$util = Util
/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  components: {App},
  template: '<App/>'
})
